package com.huixuebao.api.service.rpc;


import com.huixuebao.api.dto.InsuredOrderShortDTO;
import com.huixuebao.common.bean.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "settle")
public interface InsureOrderService {

    @GetMapping("/insure/order/list")
    ApiResult<List<InsuredOrderShortDTO>> listInsuredOrders(@RequestParam("phone") String phone);

    @GetMapping("/insure/order/updateSettleState")
    ApiResult updateSettleState(@RequestParam("policyId") String policyId);
    
}
